package com.vcc.data.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.vcc.data.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@Setter
@Getter
@Table(value = "vcc_regulation")
public class Regulation extends BaseEntity implements Serializable {

    @Column(comment = "用户ID",value = "user_id")
    private Long userId;

    //调账类型  account 账户调账  card  卡调账
    @Column(comment = "调账类型",value = "type")
    private String type;


    //事件 0 返点  1  拒付  2 清退  3 资金未清算
    @Column(comment = "事件",value = "event")
    private Integer useFlag;

    @Column(comment = "订单号",value = "order_id")
    private String orderId;

    //金额类型  add 加钱 subtract 减钱
    @Column(comment = "金额类型",value = "amount_type")
    private String amountType;

    @Column(comment = "金额",value = "amount")
    private BigDecimal amount;

    @Column(comment = "币种编码",value = "currency_code")
    private String currencyCode;

    @Column(comment = "卡号",value = "card_id")
    private Long cardId;

    @Column(comment = "备注",value = "remark")
    private String remark;

    @Column(comment = "请求时间",value = "request_date")
    private Date requestDate;


    @Column(comment = "操作用户ID",value = "operation_user_id")
    private Long operationUserId;

    @Column(comment = "卡号", value = "card_number", ignore = true)
    private String cardNumber;

    @Column(comment = "账号", value = "account", ignore = true)
    private String account;

    @Column(comment = "操作账号", value = "operation_account", ignore = true)
    private String operationAccount;

    @Column(comment = "代理账号", value = "dealer_account", ignore = true)
    private String dealerAccount;

}
